package com.example.webfluxdemo.service;

import com.example.webfluxdemo.HttpContext;
import org.springframework.stereotype.Service;
import reactor.core.publisher.Mono;

/**
 * Created by victor on 2021/10/20 16:34.
 */
@Service
public class HttpContextService {
    public Mono<Boolean> isDebug() {
        return HttpContext.isDebug().map(b -> !b);
    }
}
